/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.game-container {
    position: relative;
    width: 90vw;
    max-width: 600px;
    height: 80vh;
    max-height: 600px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transition: all 0.5s ease;
}

h1, h2 {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn {
    background: linear-gradient(45deg, #7B68EE, #66a6ff);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4);
}

.btn i {
    margin-right: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.6);
}

.btn:active {
    transform: translateY(1px);
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* 游戏界面样式 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.1);
}

.score, .timer {
    font-size: 1.1rem;
    font-weight: bold;
}

#game-area {
    width: 100%;
    height: calc(100% - 60px);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* 方块样式 */
.block {
    position: absolute;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    transform-origin: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.block:hover {
    transform: scale(1.05);
}

/* 方块消失动画 */
@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.5); }
}

.fade-out {
    animation: fadeOut 0.3s forwards;
}

/* 得分动画 */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.point-popup {
    position: absolute;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
    animation: pop 0.5s forwards;
}
